--       _________ __                 __                               
--      /   _____//  |_____________ _/  |______     ____  __ __  ______
--      \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
--      /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \ 
--     /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
--             \/                  \/          \//_____/            \/ 
--  ______________________                           ______________________
--			  T H E   W A R   B E G I N S
--	   Stratagus - A free fantasy real time strategy game engine

--      widgets.lua - User interface
--
--      (c) Copyright 2005 by Kimmo Merikivi
--
--      This program is free software; you can redistribute it and/or modify
--      it under the terms of the GNU General Public License as published by
--      the Free Software Foundation; either version 2 of the License, or
--      (at your option) any later version.
--  
--      This program is distributed in the hope that it will be useful,
--      but WITHOUT ANY WARRANTY; without even the implied warranty of
--      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--      GNU General Public License for more details.
--  
--      You should have received a copy of the GNU General Public License
--      along with this program; if not, write to the Free Software
--      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------


DefineButtonStyle("main", {
	Size = {128, 20},
	Font = "game",
	TextNormalColor = "yellow",
	TextReverseColor = "white",
	TextAlign = "Center",
	TextPos = {64, 4},
	Default = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 4,
	},
	Hover = {
		TextNormalColor = "white",
	},
	Selected = {
		Border = {
			Color = {252, 252, 0}, Size = 1,
		},
	},
	Clicked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 5,
		TextNormalColor = "white",
		TextPos = {66, 6},
	},
	Disabled = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = f,
		TextNormalColor = "grey",
		TextReverseColor = "grey",
	},
})

DefineButtonStyle("network", {
	Size = {80, 20},
	Font = "game",
	TextNormalColor = "yellow",
	TextReverseColor = "white",
	TextAlign = "Center",
	TextPos = {40, 4},
	Default = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 7,
	},
	Hover = {
		TextNormalColor = "white",
	},
	Selected = {
		Border = {
			Color = {252, 252, 0}, Size = 1,
		},
	},
	Clicked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 8,
		TextNormalColor = "white",
		TextPos = {42, 6},
	},
	Disabled = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 6,
		TextNormalColor = "grey",
		TextReverseColor = "grey",
	},
})

DefineButtonStyle("gm-half", {
	Size = {106, 28},
	Font = "large",
	TextNormalColor = "yellow",
	TextReverseColor = "white",
	TextAlign = "Center",
	TextPos = {53, 7},
	Default = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 10,
	},
	Hover = {
		TextNormalColor = "white",
	},
	Selected = {
		Border = {
			Color = {252, 252, 0}, Size = 1,
		},
	},
	Clicked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 11,
		TextNormalColor = "white",
		TextPos = {55, 9},
	},
	Disabled = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 9,
		TextNormalColor = "grey",
		TextReverseColor = "grey",
	},
})

DefineButtonStyle("gm-full", {
	Size = {224, 28},
	Font = "large",
	TextNormalColor = "yellow",
	TextReverseColor = "white",
	TextAlign = "Center",
	TextPos = {112, 7},
	Default = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 16,
	},
	Hover = {
		TextNormalColor = "white",
	},
	Selected = {
		Border = {
			Color = {252, 252, 0}, Size = 1,
		},
	},
	Clicked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 17,
		TextNormalColor = "white",
		TextPos = {114, 9},
	},
	Disabled = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 15,
		TextNormalColor = "grey",
		TextReverseColor = "grey",
	},
})

DefineButtonStyle("folder", {
	Size = {39, 22},
	Font = "large",
	TextNormalColor = "yellow",
	TextReverseColor = "white",
	TextAlign = "Left",
	TextPos = {44, 6},
	Default = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 51,
	},
	Hover = {
		TextNormalColor = "white",
	},
	Selected = {
		Border = {
			Color = {252, 252, 0}, Size = 1,
		},
	},
	Clicked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 52,
		TextNormalColor = "white",
	},
	Disabled = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 50,
	},
})

DefineButtonStyle("icon", {
	Size = {46, 46},
	Font = "game",
	TextNormalColor = "yellow",
	TextReverseColor = "white",
	TextAlign = "Right",
	TextPos = {44, 24},
	Default = {
		Border = {
			Color = {50, 50, 50}, Size = 2,
		},
	},
	Hover = {
		TextNormalColor = "white",
		Border = {
			Color = {128, 128, 128}, Size = 2,
		},
	},
	Selected = {
		Border = {
			Color = {0, 200, 0}, Size = 1,
			},
	},
	Clicked = {
		TextNormalColor = "white",
		Border = {
			Color = {128, 128, 128}, Size = 1,
		},
	},
	Disabled = {
	},
})


DefineCheckboxStyle("round", {
	Size = {19, 19},
	Font = "game",
	TextNormalColor = "yellow",
	TextReverseColor = "white",
	TextAlign = "Left",
	TextPos = {24, 4},
	Default = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 19,
	},
	Hover = {
		TextNormalColor = "white",
	},
	Selected = {
		Border = {
			Color = {252, 252, 0}, Size = 1,
		},
	},
	Disabled = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 18,
	},
	Clicked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 20,
		TextNormalColor = "white",
	},
	Checked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 21,
	},
	CheckedHover = {
		TextNormalColor = "white",
	},
	CheckedSelected = {
		Border = {
			Color = {252, 252, 0}, Size = 1,
		},
	},
	CheckedClicked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 22,
		TextNormalColor = "white",
	},
	CheckedDisabled = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 18,
	},
})

DefineCheckboxStyle("square", {
	Size = {19, 19},
	Font = "game",
	TextNormalColor = "yellow",
	TextReverseColor = "white",
	TextAlign = "Left",
	TextPos = {24, 4},
	Default = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 24,
	},
	Hover = {
		TextNormalColor = "white",
	},
	Selected = {
		Border = {
			Color = {252, 252, 0}, Size = 1,
		},
	},
	Clicked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 25,
		TextNormalColor = "white",
	},
	Disabled = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 23,
	},
	Checked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 26,
	},
	CheckedHover = {
		TextNormalColor = "white",
	},
	CheckedSelected = {
		Border = {
			Color = {252, 252, 0}, Size = 1,
		},
	},
	CheckedClicked = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 27,
		TextNormalColor = "white",
	},
	CheckedDisabled = {
		File = "ui/panels/buttons.png", Size = {300, 144}, Frame = 23,
	},
})
